package com.buyu.mvvm.mvvm.di;


import android.app.Application;

import com.buyu.mvvm.mvvm.MyApplication;

import javax.inject.Singleton;

import dagger.BindsInstance;
import dagger.Component;
import dagger.android.AndroidInjector;
import dagger.android.support.AndroidSupportInjectionModule;

/**
 * Created by cui-hl on 2018/08/30.
 */

@Singleton
@Component(modules = {
        HttpModule.class,
        ApplicationModule.class,
        BuildersModuleActivity.class,
        BuildersModuleFragment.class,
        AndroidSupportInjectionModule.class})
public interface ApplicationComponent extends AndroidInjector<MyApplication> {

    @Component.Builder
    abstract class Builder extends AndroidInjector.Builder<MyApplication> {
        @BindsInstance
        public abstract Builder application(Application application);
    }

}
